<?php
/**
 * Created by PhpStorm.
 * User: 李一瑶
 * Date: 2019/1/17
 * Time: 15:59
 */
namespace App\Http\Controllers\web;
use App\Http\Controllers\Controller;
use App\Http\Requests\LogListCheck;
use App\Http\Service\LogInterface;

class LogController extends Controller
{
    private $log;

    public function __construct(LogInterface $log)
    {
        $this->log = $log;
    }

    public function getList(LogListCheck $request)
    {
        return $this->log->index($request->all());
    }

    public function getListView()
    {
        return view('User/Home/Log');
    }
}